package com.kly.user.db.dao;
import com.fqgj.common.base.BaseMapper;
import com.kly.user.db.entity.UserBehaviorGpsEntity;

import java.util.List;

/**
* User: linqu
* Date: 2023-05-24
* Time: 10:10:36.847
*/

public interface UserBehaviorGpsDao  extends BaseMapper<UserBehaviorGpsEntity> {

    /**
     * 读取用户最新位置信息
     * @param userCode
     * @return
     */
    UserBehaviorGpsEntity getLastGps(String userCode);

    /**
     * 添加gps记录
     */
    UserBehaviorGpsEntity addGps(String userCode, String state, String stateAbbr, String city, String lng, String lat);

    /**
     * 批量读取用户gps信息
     * @param list
     * @return
     */
     List<UserBehaviorGpsEntity> queryGpsListByUserCode(List<String> list);

}